<div id="MarketingTaskReportGridMember">
  <yu-panel title="营销任务报表-网格员">
    <yu-xform ref="MarketingTaskReportGridMemberInfoSearch" related-table-name="MarketingTaskReportGridMemberTable" form-type="search"
              :custom-search-fn="searchFn">
      <yu-xform-group :column="3">
        <yu-xform-item label="机构名称" placeholder="机构名称" name="gridName" ctype="input"></yu-xform-item>
        <yu-xform-item label="开始日期" placeholder="开始日期" name="startDate" ctype="datepicker" :picker-options="pickerStartOptions"></yu-xform-item>
        <yu-xform-item label="结束日期" placeholder="结束日期" name="endDate" ctype="datepicker" :picker-options="pickerEndOptions"></yu-xform-item>
        <yu-xform-item label="档案号" placeholder="档案号" ctype="input" name="userNo"></yu-xform-item>
        <yu-xform-item label="任务名称" placeholder="任务名称" ctype="input" name="taskName"></yu-xform-item>
        <yu-xform-item label="任务状态" placeholder="任务状态" ctype="select" data-code="TASK_STAT" name="taskStat"></yu-xform-item>
        <yu-xform-item label="数据日期" placeholder="数据日期" ctype="datepicker" name="etlDt"></yu-xform-item>
      </yu-xform-group>
    </yu-xform>
    <div style="justify-content:space-between;display: flex">
      <div>
        <yu-button type="warning" v-loading="loading"  @click="exportExcel()" >导出数据</yu-button>
      </div>
    </div>
    <div style="height: 30px"></div>
    <yu-xtable ref="MarketingTaskReportGridMemberTable" :base-params="MarketingTaskReportGridMemberData" :data-url="funcDataUrl" request-type="get" row-number style="width: 100%">
      <yu-xtable-column prop="etlDt" label="数据日期" width="120px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="gridName" label="机构名称" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taskName" label="任务名称" width="130px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userNo" label="档案号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userName" label="网格员姓名" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="startDate" label="开始时间" width="130px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="endDate" label="结束时间" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="indexName" label="指标名称" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="nameListCustNum" label="名单客户数" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="successCustNum" label="成功营销客户数" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taskStat" label="任务状态" width="160px" align="center" data-code="TASK_STAT" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="issuedValue" label="发布期初值" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="currentValue" label="当前值" width="160px" align="center" show-overflow-tooltip></yu-xtable-column>
    </yu-xtable>
  </yu-panel>
</div>
